<template>
	<div id="upload">
		<el-upload
			post
		  class="upload-demo"
		  drag
		  action="http://127.0.0.1:3007/api/file/upload"
		  multiple
		  name="file"
		  >
		  <i class="el-icon-upload"></i>
		  <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
		  <div class="el-upload__tip" slot="tip">只能上传jpg/png文件，且不超过2M</div>
		</el-upload>
	</div>
</template>

<script>
	export default{
		name:"upload",
		data() {
		    return {
		      selectedFiles: undefined,
		      progressInfos: [],
		      message: "",
		      fileInfos: [],
		    };
		  },
	}
</script>

<style>
</style>
